import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index/Index.vue'

import Home from '@/components/1_Home/Home.vue'

import Shop from '@/components/2_Shop/Shop.vue'

import Choice from '@/components/3_Choice/Choice.vue'

import Discover from '@/components/4_Discover/Discover.vue'

import User from '@/components/5_User/User.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index,
      // 重定向
      redirect: '/Home',
      // 二级路由
      children: [{// 底部导航
	      path: '/Home',
	      name: 'Home',
	      component: Home
      },{
      	path: '/Shop',
	      name: 'Shop',
	      component: Shop
      },{
      	path: '/Choice',
	      name: 'Choice',
	      component: Choice
      },{
      	path: '/Discover',
	      name: 'Discover',
	      component: Discover
      },{
      	path: '/User',
	      name: 'User',
	      component: User
      }]
    }
  ]
})
